import service from "@/service";

//项目列表
export function getList(data) {
  let { page, pageSize, tenantName = "" } = data;
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/user/sys-tenant/getProjectList?page=${page}&pageSize=${pageSize}`,
    method: "POST",
    data: {
      tenantName,
    },
  });
}

//试验类型列表
export function trialTypeList(params) {
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/beamTrial/config-trial-type/trialTypeList`,
    method: "GET",
    params,
  });
}

//项目配置-试验配置 保存
export function saveConfig(data) {
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/beamTrial/link-project-type-standard-template/saveConfig`,
    method: "POST",
    data,
  });
}
